Martin Blanchard [Sun, 14 Jun 2020 14:13:37 +0000 (16:13 +0200)]
Fix the lpr print backend build (redundant-decls)
Class and instance _init() functions are already declared by
G_DEFINE_DYNAMIC_TYPE ().
Asier Sarasua Garmendia [Sat, 13 Jun 2020 20:19:00 +0000 (20:19 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 19:40:17 +0000 (19:40 +0000)]
Update Basque translation
Matthias Clasen [Sat, 13 Jun 2020 16:17:49 +0000 (16:17 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
widget-factory: Make the print dialog more functional
See merge request GNOME/gtk!2083
Matthias Clasen [Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)]
widget-factory: Make the print dialog more functional
Allow opening the papersize dialog.
Yuri Chornoivan [Sat, 13 Jun 2020 11:45:35 +0000 (11:45 +0000)]
Update Ukrainian translation
Piotr Drąg [Sat, 13 Jun 2020 10:48:27 +0000 (12:48 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Fri, 12 Jun 2020 21:53:48 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
paperdialog: Drop the private struct
See merge request GNOME/gtk!2082
Matthias Clasen [Fri, 12 Jun 2020 16:52:47 +0000 (12:52 -0400)]
paperdialog: Drop the private struct
Not needed here.
Matthias Clasen [Fri, 12 Jun 2020 16:39:46 +0000 (16:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2080
Matthias Clasen [Fri, 12 Jun 2020 14:01:17 +0000 (14:01 +0000)]
Merge branch 'fix-custom-paper-dialog' into 'master'
Fix the custom paper dialog
See merge request GNOME/gtk!2078
Matthias Clasen [Fri, 12 Jun 2020 12:28:59 +0000 (08:28 -0400)]
printdialog: Replace the papersize combo with a dropdown
This one is more complicated, since it involves
separators and a custom item.
Matthias Clasen [Fri, 12 Jun 2020 13:20:46 +0000 (09:20 -0400)]
Adwaita: Allow separators on individual list items
Allow setting a .separator style class on list items
to put a separator before the item.
Matthias Clasen [Thu, 11 Jun 2020 22:10:42 +0000 (18:10 -0400)]
printdialog: Replace some combo boxes with drop downs
These are just the simple cases.
Matthias Clasen [Thu, 11 Jun 2020 23:59:35 +0000 (19:59 -0400)]
printeroptionwidget: Port to GtkDropDown
Use GtkDropDown instead of GtkComboBox in the print dialog.
Matthias Clasen [Fri, 12 Jun 2020 03:25:58 +0000 (23:25 -0400)]
testdropdown: Add some more tests
Add a homegrown combobox entry replacement that
combines a dropdown with a plain entry.
Matthias Clasen [Fri, 12 Jun 2020 03:24:36 +0000 (23:24 -0400)]
dropdown: Make the stack nonhomogeneous
Without this, the (None) in the empty page forces
the button to have a large minimum width, even when
we don't put a widget in it.
Matthias Clasen [Fri, 12 Jun 2020 12:46:18 +0000 (08:46 -0400)]
Fix the custom paper dialog
This broke during the container removal.
Yuri Chornoivan [Fri, 12 Jun 2020 06:40:07 +0000 (06:40 +0000)]
Update Ukrainian translation
Matthias Clasen [Thu, 11 Jun 2020 23:44:48 +0000 (23:44 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2077
Matthias Clasen [Thu, 11 Jun 2020 22:29:58 +0000 (18:29 -0400)]
dropdown: Make the popup as wide as the button
Having narrow popups on a wide button looks awkward.
Do the same as the combo box, and ensure the popup
is at least as wide as the button.
Matthias Clasen [Sun, 7 Jun 2020 13:08:10 +0000 (09:08 -0400)]
iconbrowser: Drop app menu leftovers
We don't use menus.ui anymore, so don't put it in a resource.
Matthias Clasen [Thu, 11 Jun 2020 22:09:12 +0000 (18:09 -0400)]
Adwaita: bring dropdown arrows back
These got lost when the css name changed from combobox
to dropdown.
Matthias Clasen [Thu, 11 Jun 2020 21:25:57 +0000 (17:25 -0400)]
docs: Cosmetics
Remove a few instances of GTK+ from the docs, and
remove references to ancient versions.
Matthias Clasen [Thu, 11 Jun 2020 20:58:52 +0000 (20:58 +0000)]
Merge branch 'recent-model' into 'master'
Add a list model for recent files
See merge request GNOME/gtk!2073
Matthias Clasen [Wed, 10 Jun 2020 23:55:58 +0000 (19:55 -0400)]
testcolumnview: Add recent file support
Use testcolumnview --recent to see recent files.
Matthias Clasen [Wed, 10 Jun 2020 21:03:13 +0000 (17:03 -0400)]
Add GtkBookmarkList
This is a listmodel similar to GtkDirectoryList,
for tracking recent files.
Matthias Clasen [Thu, 11 Jun 2020 13:08:47 +0000 (13:08 +0000)]
Merge branch 'property-selection-getters' into 'master'
propertyselection: Add getters
See merge request GNOME/gtk!2075
Matthias Clasen [Thu, 11 Jun 2020 11:15:27 +0000 (07:15 -0400)]
propertyselection: Add getters
These were missing.
Matthias Clasen [Wed, 10 Jun 2020 14:47:36 +0000 (14:47 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernative_get_filter' into 'master'
filechoosernative: Make get_filter work for (non-portal) native chooser (master, issue #1820)
Closes #1820
See merge request GNOME/gtk!2069
Emmanuele Bassi [Wed, 10 Jun 2020 14:35:10 +0000 (14:35 +0000)]
Merge branch 'wip/carlosg/zoom-no-touchpad-warnings' into 'master'
gtkgesturezoom: Do not check touchpad phase on generic events
Closes #2825
See merge request GNOME/gtk!2071
Matthias Clasen [Wed, 10 Jun 2020 14:35:01 +0000 (14:35 +0000)]
Merge branch 'scroll-compression' into 'master'
gdk: Compress scroll events
Closes #2800
See merge request GNOME/gtk!2066
Matthias Clasen [Wed, 10 Jun 2020 13:06:13 +0000 (13:06 +0000)]
Merge branch 'device-cleanup' into 'master'
Device cleanup
See merge request GNOME/gtk!2068
sicklylife [Wed, 10 Jun 2020 12:34:42 +0000 (12:34 +0000)]
Update Japanese translation
Carlos Garnacho [Wed, 10 Jun 2020 12:27:14 +0000 (14:27 +0200)]
gtkgesturezoom: Do not check touchpad phase on generic events
This gesture handles both individual touch events and touchpad gesture
events, and was checking the touchpad phase in generic code paths. This
is dubious since event methods error out on the wrong GdkEventTypes.
Check the touchpad gesture phase within the branch handling touchpad
events, and make it clear which is the gesture phase of all that we are
ignoring.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/2825
sicklylife [Wed, 10 Jun 2020 12:18:55 +0000 (12:18 +0000)]
Update Japanese translation
Matthias Clasen [Tue, 9 Jun 2020 19:26:04 +0000 (15:26 -0400)]
gdk: Drop axis labels
This was only ever implemented on X11, and the labels
here were atom names, so unlikely to be useful for
anything interesting.
Alexander Larsson [Wed, 10 Jun 2020 07:19:22 +0000 (07:19 +0000)]
Merge branch 'win32-use-g-stat' into 'master'
gtkiconcache: Use g_stat instead of fstat
See merge request GNOME/gtk!2019
Michael Weghorn [Sat, 23 May 2020 11:38:54 +0000 (13:38 +0200)]
filechoosernative: Make get_filter work for (non-portal) native chooser
'gtk_file_chooser_get_filter' did not work for GtkFileChooserNative,
since the previous way did not properly handle the delegate dialog,
s.a. commit
a136cbae8f8848d49976512f7f0ec73137428ea0
("filechoosernative: forward current_filter to delegate dialog",
2018-11-29) for details, wich basiscally fixed the same thing for
the 'gtk_file_chooser_set_filter' case.
This fixes #1820 for the fallback dialog. A solution for the portal
one (which also requires changes to xdg-desktop-portal and
xdg-desktop-portal-gtk as well) will be suggested in a subsequent step.
Bug: #1820
Matthias Clasen [Tue, 9 Jun 2020 19:15:51 +0000 (15:15 -0400)]
gdk: Drop gdk_device_set_axis_use
If you need some axes changed, you can just flip
the values when you receive them.
Matthias Clasen [Tue, 9 Jun 2020 19:06:38 +0000 (15:06 -0400)]
gdk: Drop gdk_device_get/set_keys
This functionality was only ever half-implemented
on X11, and is not useful enough to keep around.
Matthias Clasen [Tue, 9 Jun 2020 19:05:55 +0000 (15:05 -0400)]
x11: Stop setting device keys
This is very vestigial functionality, and basically
unused.
Matthias Clasen [Tue, 9 Jun 2020 18:13:22 +0000 (14:13 -0400)]
Address review comments
We were casting scroll events to motion events
rather carelessly. Don't do that.
Matthias Clasen [Tue, 9 Jun 2020 17:59:26 +0000 (13:59 -0400)]
gdk: Add documentation
Add some useful information about event history.
Matthias Clasen [Tue, 9 Jun 2020 17:40:26 +0000 (13:40 -0400)]
gdk: Rename gdk_motion_event_get_history
Scroll events can have history too, so make a
getter that works for both. This drops the
gdk_scroll_event_get_history getter that was
added a few commits earlier, since we now
store scroll history in the same way as
motion history.
Update the docs, and all callers.
Matthias Clasen [Tue, 9 Jun 2020 17:38:48 +0000 (13:38 -0400)]
gdk: Shrink GdkTimeCoord
There is really no need to store 128 doubles as axes,
ever. We can do just fine with 10. At the same time,
add a GdkAxisFlags member, so we can interpret the
values without having to go chasing the right device
for this information.
Matthias Clasen [Tue, 9 Jun 2020 17:41:07 +0000 (13:41 -0400)]
gdk: Add scroll delta x/y as device axes
They really are axes, and having them present
in these enums lets use store delta values in
GdkTimeCoord for keeping history.
Matthias Clasen [Tue, 9 Jun 2020 00:29:38 +0000 (20:29 -0400)]
Keep scroll history
Similar to how we keep motion history for compressed
events, keep scroll history for compressed scroll
events.
Matthias Clasen [Mon, 8 Jun 2020 22:07:40 +0000 (18:07 -0400)]
gdk: Compress scroll events
Only return one accumulated scroll event per frame.
Compress them by adding up the deltas.
Still missing: a way to capture history, like
we do for motion events.
Fixes: #2800
Daniel Mustieles [Tue, 9 Jun 2020 15:19:50 +0000 (17:19 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 8 Jun 2020 23:56:30 +0000 (23:56 +0000)]
Merge branch 'drop-device-history' into 'master'
Drop device history
See merge request GNOME/gtk!2065
Matthias Clasen [Mon, 8 Jun 2020 22:22:52 +0000 (18:22 -0400)]
gdk: Drop gdk_device_get_history
This function is not implemented anywhere.
Matthias Clasen [Mon, 8 Jun 2020 22:21:12 +0000 (18:21 -0400)]
win32: Drop pointless vfuncs
These are not useful.
Matthias Clasen [Mon, 8 Jun 2020 22:20:20 +0000 (18:20 -0400)]
wayland: Drop a pointless vfunc
A vfunc that just returns FALSE is not useful.
Matthias Clasen [Mon, 8 Jun 2020 22:19:57 +0000 (18:19 -0400)]
broadway: Drop a pointless vfunc
A vfunc that just returns FALSE is not useful.
Jordi Mas [Mon, 8 Jun 2020 20:50:03 +0000 (22:50 +0200)]
Update Catalan translation
Benjamin Otte [Mon, 8 Jun 2020 18:43:31 +0000 (18:43 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
Wip/otte/for master
See merge request GNOME/gtk!2064
Benjamin Otte [Mon, 8 Jun 2020 16:47:44 +0000 (18:47 +0200)]
selectionmodel: Add unselect_rest argument to select_callback
This is not just about consistency with other functions.
It is about avoiding reentrancy problems.
GtkListBase first doing an unselect_all() will then force the
SelectionModel to consider a state where all items are unselected
(and potentially deciding to autoselect one) and then cause a
"selection-changed" emission that unselects all items and potentially
updates all the list item widgets in the GtkListBase to the unselected
state.
After this, GtkListBase selects new items, but to the SelectionModel and
the list item widgets this looks like an enitrely new operation and
there is no way to associate it with the previous state, so the
SelectionModel cannot undo any previous actions it took when
unselecting.
And all listitem widgets will now think they were just selected and
start running animations about selecting.
Benjamin Otte [Mon, 8 Jun 2020 16:26:48 +0000 (18:26 +0200)]
selectionmodel: Rename "exclusive" to "unselect_rest"
The name is better at explaining what this boolean is meant to do.
Benjamin Otte [Mon, 8 Jun 2020 16:06:01 +0000 (18:06 +0200)]
listitemmanager: Update selections properly
Replace a previous fix with a more correct one: Update the
selected state from the model instead of reusing the old state, the
model might have updated the selected state.
Daniel Mustieles [Mon, 8 Jun 2020 15:21:58 +0000 (17:21 +0200)]
Updated Spanish translation
Daniel Mustieles [Mon, 8 Jun 2020 14:11:28 +0000 (16:11 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 8 Jun 2020 11:15:28 +0000 (11:15 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
dropdown: Use our own CSS name
See merge request GNOME/gtk!2061
Emmanuele Bassi [Mon, 8 Jun 2020 09:35:23 +0000 (09:35 +0000)]
Merge branch 'tintou/places-sidebar-cloudproviders' into 'master'
placessidebar: Fix build with libcloudproviders
See merge request GNOME/gtk!2062
Corentin Noël [Mon, 8 Jun 2020 08:40:46 +0000 (10:40 +0200)]
placessidebar: Fix build with libcloudproviders
Make it build with cloudproviders=true as the GtkPopover API for menus is now in GtkPopoverMenu.
Fix some leaks while looking at the code.
Matthias Clasen [Sun, 7 Jun 2020 14:54:37 +0000 (14:54 +0000)]
Merge branch 'fix-cell-editing' into 'master'
Fix cell editing
Closes #2831
See merge request GNOME/gtk!2060
Matthias Clasen [Sun, 7 Jun 2020 13:01:20 +0000 (09:01 -0400)]
dropdown: Use our own CSS name
Use the name dropdown for the css node, and document it.
Matthias Clasen [Sun, 7 Jun 2020 12:48:14 +0000 (08:48 -0400)]
Drop gtknativeprivate.h
No need to ship empty headers.
Matthias Clasen [Sun, 7 Jun 2020 12:51:34 +0000 (12:51 +0000)]
Merge branch 'gtk-demo-tweaks' into 'master'
Gtk demo tweaks
See merge request GNOME/gtk!2059
Matthias Clasen [Sun, 7 Jun 2020 12:43:36 +0000 (08:43 -0400)]
Fix cell editing
When translating coordinates from an event, we need to
take the surface transform into account. This makes
double-clicking on editable cells in treeviews work
again.
Fixes: #2831
Yuri Chornoivan [Sun, 7 Jun 2020 08:51:44 +0000 (08:51 +0000)]
Update Ukrainian translation
Piotr Drąg [Sun, 7 Jun 2020 07:27:34 +0000 (09:27 +0200)]
Update POTFILES.in
Matthias Clasen [Sun, 7 Jun 2020 02:07:38 +0000 (22:07 -0400)]
gtk-demo: Expand the sidebar by default
Seems better to show what we have. Plus, clicking
those arrows is a little fiddly.
Matthias Clasen [Sun, 7 Jun 2020 02:06:58 +0000 (22:06 -0400)]
gtk-demo: Improve display of image sources
Make the images expand to fill the space.
Matthias Clasen [Sun, 7 Jun 2020 02:05:52 +0000 (22:05 -0400)]
gtk-demo: Cosmetics
Tweak the formatting of the descriptions of
various demos.
Matthias Clasen [Sun, 7 Jun 2020 01:42:07 +0000 (21:42 -0400)]
gtk-demo: Cosmetics
Make the titles of some demos match between sidebar
and window.
Emmanuele Bassi [Sun, 7 Jun 2020 01:42:21 +0000 (01:42 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Annotate the GtkSelectionModel callbacks
See merge request GNOME/gtk!2057
Matthias Clasen [Sun, 7 Jun 2020 01:38:31 +0000 (21:38 -0400)]
gtk-demo: Add overline to the markup demo
This is a new-ish Pango feature.
Matthias Clasen [Sun, 7 Jun 2020 01:32:55 +0000 (21:32 -0400)]
Drop pango version checks
We are requiring pango 1.45.0 now, so no need to
Keep these ifdefs in the code any longer.
Matthias Clasen [Sun, 7 Jun 2020 00:09:42 +0000 (20:09 -0400)]
gtk-demo: Fix a leak
The themes demo was leaking its builder, and
therefore couldn't be closed.
Matthias Clasen [Sun, 7 Jun 2020 00:08:50 +0000 (20:08 -0400)]
gtk-demo: Cosmetic changes to the dropdown demo
Match the window title and the sidebar.
Matthias Clasen [Sat, 6 Jun 2020 23:43:21 +0000 (19:43 -0400)]
gtk-demo: Cosmetic improvements to clocks demo
Reformat the code comments, and add a 10th clock.
Emmanuele Bassi [Sat, 6 Jun 2020 23:39:33 +0000 (00:39 +0100)]
Annotate the GtkSelectionModel callbacks
We need a scope for the select and unselect callback arguments.
Jordi Mas [Sat, 6 Jun 2020 21:13:17 +0000 (23:13 +0200)]
Update Catalan translation
Matthias Clasen [Sat, 6 Jun 2020 17:56:00 +0000 (13:56 -0400)]
3.98.5
Matthias Clasen [Sat, 6 Jun 2020 19:31:29 +0000 (15:31 -0400)]
Disable a failing test
For some reason, empty-linear-gradient is failing here,
with the broadway and opengl renderers, and I don't
know why. Disable it for now.
Matthias Clasen [Sat, 6 Jun 2020 18:18:18 +0000 (14:18 -0400)]
Skip broken a11y tests
Matthias Clasen [Sat, 6 Jun 2020 17:29:55 +0000 (13:29 -0400)]
docs: Regroup the tree support parts
Give the chapter a title, and put some things in sections.
Matthias Clasen [Sat, 6 Jun 2020 17:19:07 +0000 (13:19 -0400)]
docs: Put selection models into a section
This makes the documentation structure a bit clearer.
Matthias Clasen [Sat, 6 Jun 2020 16:59:58 +0000 (12:59 -0400)]
docs: Fix up the GtkNativeDialog section
Without GtkNativeDialog in the section list,
links are not generated from the object hierarchy.
Matthias Clasen [Sat, 6 Jun 2020 17:54:42 +0000 (17:54 +0000)]
Merge branch 'misc-multiselection' into 'master'
Misc multiselection
See merge request GNOME/gtk!2055
Matthias Clasen [Sat, 6 Jun 2020 17:47:05 +0000 (17:47 +0000)]
Merge branch 'list-arrows' into 'master'
listbase: Make up/down arrows work
See merge request GNOME/gtk!2056
Matthias Clasen [Sat, 6 Jun 2020 17:35:05 +0000 (17:35 +0000)]
Merge branch 'property-selection' into 'master'
Property selection
Closes #2826
See merge request GNOME/gtk!2054
Matthias Clasen [Sat, 6 Jun 2020 16:33:12 +0000 (12:33 -0400)]
listbase: Make up/down arrows work
We were missing a binding for up/down without modifiers.
Matthias Clasen [Sat, 6 Jun 2020 15:53:33 +0000 (11:53 -0400)]
singleselection: Clarify docs
Mention persistence and sorting.
Matthias Clasen [Sat, 6 Jun 2020 13:49:25 +0000 (09:49 -0400)]
gtk-demo: Use a property selection in the colors demo
This makes the property persist across sort changes.
Matthias Clasen [Sat, 6 Jun 2020 13:40:04 +0000 (09:40 -0400)]
Add GtkPropertySelection
This is a selection model that stores the selection
state in a boolean property of the items, and thus
persists across reordering and similar changes.
Fixes: #2826
Matthias Clasen [Sat, 6 Jun 2020 15:23:40 +0000 (15:23 +0000)]
Merge branch 'listitemmanager-selection' into 'master'
listitemmanager: Handle selection-changes properly
Closes #2827
See merge request GNOME/gtk!2053
Matthias Clasen [Sat, 6 Jun 2020 15:21:29 +0000 (11:21 -0400)]
multiselection: Rewrite the select_callback implementation
Use a for loop to make this more obvious, and add some
assertions that the callback is behaving properly.
Matthias Clasen [Sat, 6 Jun 2020 15:20:47 +0000 (11:20 -0400)]
Add tests for select_callback